<?php
namespace app\admin\logic;

use app\admin\model\system\SubscribeModel;

class SubscribeLogic
{
    /**
     * @Notes:创建订阅服务
     * @User: chenping
     * @email: 375129701@qq.com
     * @param $channel
     * @param $content
     * @return static
     */
    public function createSubscribe($uid,$channel,$content)
    {
        return (new SubscribeModel())->create([
            "channel" => $channel,
            "content" => $content,
            "user_id" => $uid
        ]);
    }
}